cmake_minimum_required(VERSION 3.10)

project(DBusControl)

set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD_REQUIRED True)
set(CMAKE_CXX_FLAGS "-g -Wall")

aux_source_directory(src SRC_CODE)
find_package(fmt REQUIRED)
find_package(sdbus-c++ REQUIRED)
find_package(yaml-cpp REQUIRED)

link_libraries(
  fmt
  rt
  pthread
  yaml-cpp::yaml-cpp
  SDBusCpp::sdbus-c++
)

#add_executable(ServerUIProxy_test
#  src/ServerUIProxy.cpp
#  run/ServerUIProxy_test.cpp
#)
#
#add_executable(testPOSIXMsgClient
#  src/AdvPOSIXMsgqueue.cpp
#  run/testPOSIXMsgClient.cpp
#)
#
#add_executable(testPOSIXMsgServer
#  src/AdvPOSIXMsgqueue.cpp
#  run/testPOSIXMsgServer.cpp
#)
add_executable(DBusControl
  ${SRC_CODE}
  run/main.cpp
)
